import Vue from 'vue'
import App from './App.vue'
import store from './store';
// import '@/assets/reset.css'//初始样式设置
import "@babel/polyfill" //用来兼容ie
// import '@/components' //按需加载的ant-design 样式
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
Vue.use(Antd)
import proTable from '@/components/pro-table';
import filterbar from '@/components/filterbar'
import STable from '@/components/Table';
Vue.component('filterbar', filterbar)
Vue.component('STable', STable)
Vue.component('proTable', proTable);
import router from './router';
import '@/utils/hasPermission'; //按钮权限
import './permission'; //权限路由处理
Vue.config.productionTip = false
import moment from 'moment'
import 'moment/locale/zh-cn';
moment.locale('zh-cn');
import {
	postAction,
	getAction,
	api
} from '@/api/index.js';
Vue.prototype.$postAction = postAction;
Vue.prototype.$getAction = getAction;
Vue.prototype.$api = api;
window.moment = moment;
import pick from 'lodash.pick';
Vue.prototype.$pick = pick;
// import './mock'
import {
	ConfigProvider
} from 'ant-design-vue';
Vue.use(ConfigProvider)
import {
	fileUrl
} from '@/utils/base';
Vue.mixin({
	computed: {
		filebaseUrl() {
			return fileUrl
		}

	}
});
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
